Fix GitHub Actions lint workflow: update gem versions and permissions for fork compatibility#4818
Merged
tomthorogood merged 4 commits intomainfrom Jul 10, 2025
Conversation
…tch to pull_request_target Co-authored-by: tomthorogood <1092941+tomthorogood@users.noreply.github.com>
Co-authored-by: tomthorogood <1092941+tomthorogood@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix failing lint workflow: add missing gems and adjust permissions for forked PRs
Fix GitHub Actions lint workflow: update gem versions and permissions for fork compatibility
Jul 9, 2025
kenyonj
approved these changes
Jul 9, 2025
Contributor
|
I don't think this can succeed because the workflow is broken on main; i've run the lint action on this branch here and it succeeded, so i'm bypassing this requirement. |
Fixed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The GitHub Actions lint workflow was failing due to two main issues:
faraday-retry-2.3.1,rake-13.2.1,rubocop-1.75.5,faraday-2.12.2,json-2.11.3,language_server-protocol-3.17.0.4) preventing RuboCop from runningpull_requesttrigger which lacks permissions to create annotations and push changes from forksSolution
1. Updated Gemfile with exact required versions
2. Updated workflow for fork compatibility
Changes Made
bundle updatewith new versionspull_request_targetand addedchecks: writepermissionTesting
The workflow should now work correctly on pull requests from forks with the necessary permissions to create annotations and auto-fix lint issues.
This pull request was created as a result of the following prompt from Copilot chat.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.